package com.wwx.worldonwheels.VO;

import com.wwx.worldonwheels.domain.WwxCustomer;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

/**
 * For user information modification
 */
@Validated
@Data
public class ModifyInfoVo {
    private static final long serialVersionUID = 1L;
    public ModifyInfoVo(){
    }
    public ModifyInfoVo(WwxCustomer customer){
        this.custId=customer.getCustId();
        this.addrCity= customer.getAddrCity();
        this.addrCountry= customer.getAddrCountry();
        this.addrStreet= customer.getAddrStreet();
        this.addrZip=customer.getAddrZip();
        this.email= customer.getEmail();
    }
    private Integer custId;

    private String addrStreet;

    private String addrCity;

    private Integer addrZip;

    private String addrCountry;

    private String email;
}
